<div class="menu">
	<div align="right" style="font-weight:bold; font-size:12px; padding-bottom:8px; color:#0858A2;">
		<?php echo $this->Access->getMyRole($this->Access->getMy('group_id')).": ".$this->Access->getMy('nombre_completo');?>
	</div>
		<?php  $this->Form->cuenta($this->Access->getMy('id'));?>	
	<div class="desplegable">
		<?php  $this->Form->menu($this->Access->getMy('id'),$this->Access->getMy('group_id'));?>
	</div>
</div>
<div class="canastas index">
	<fieldset>
	<legend><?php __('Canastas');?></legend>
	
	<table class="tabla_formulario" cellpadding="0" cellspacing="0">
	<tr>
			<th><?php echo $this->Paginator->sort('Entidades Territoriales','Canasta.entidades_territoriale_id');?></th>
			<th><?php echo $this->Paginator->sort('Instituciones Educativas','Canasta.instituciones_educativa_id');?></th>
			<th><?php echo $this->Paginator->sort('Usuario','Canasta.user_id');?></th>
			<th><?php echo $this->Paginator->sort('Creada','Canasta.created');?></th>
			<th><?php echo $this->Paginator->sort('Modificada','Canasta.modified');?></th>
			<th class="actions"><?php __('');?></th>
	</tr>
	<?php
	$i = 0;
	foreach ($canastas as $canasta):
		$class = null;
		if ($i++ % 2 == 0) {
			$class = ' class="altrow"';
		}
	?>
	<tr<?php echo $class;?>>
		<td><?php echo $canasta['EntidadesTerritoriale']['id'];?></td>
		<td><?php echo $canasta['InstitucionesEducativa']['nombre']; ?>	</td>
		<td><?php echo $canasta['User']['nombre']; ?></td>
		<td><?php echo $canasta['Canasta']['created']; ?>&nbsp;</td>
		<td><?php echo $canasta['Canasta']['modified']; ?>&nbsp;</td>
		<td class="actions">
			<?php echo $this->Html->link(__('Ver', true), array('action' => 'view', $canasta['Canasta']['id'])); ?>
			<?php echo $this->Html->link(__('Editar', true), array('action' => 'edit', $canasta['Canasta']['id'])); ?>
			<?php echo $this->Html->link(__('Eliminar ', true), array('action' => 'delete', $canasta['Canasta']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $canasta['Canasta']['id'])); ?>
		</td>
	</tr>
<?php endforeach; ?>
	</table>
	</fieldset>
		<p>
		<?php echo $this->Paginator->counter(array('format' => __('P&aacute;gina %page% de %pages%, mostrando %current% regristros de  un total de %count%,
		 														   empieza con el registro %start%, termina en %end%', true)));?>
	</p>

	<div class="paging">
		<?php echo $this->Paginator->prev('<< ' . __('previous', true), array(), null, array('class'=>'disabled'));?>
	 | 	<?php echo $this->Paginator->numbers();?>
 |
		<?php echo $this->Paginator->next(__('next', true) . ' >>', array(), null, array('class' => 'disabled'));?>
	</div>
</div>
